<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>
    <link rel="stylesheet" th:href="@{/bootstrap/bootstrap.min.css}" crossorigin="anonymous">
    <script type="text/javascript" th:src="@{js/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{js/bootstrap.min.js}"></script>
</head>
<body>
<div>
    <p th:text="${user.nickname}"></p>
    <div>秒杀商品列表</div>
    <table id="goodsList">
        <tr>
            <td>商品名称</td>
            <td>商品图片</td>
            <td>原价</td>
            <td>秒杀价</td>
            <td>库存</td>
            <td>详情</td>
        </tr>
        <tr th:each="goods:${goodsList}">
            <td th:text="${goods.goodsName}"></td>
            <td th:text="${goods.seckillStock}"></td>
            <td th:text="${goods.seckillPrice}"></td>
            <td th:text="${goods.endDate}"></td>
            <td><a th:href="'/goods/toDetail'+${goods.id}">详情</a></td>
        </tr>
    </table>
</div>

</body>
</html>
